package com.cskaoyan.shopping.dal.entitys;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * 映射数据库中的tb_stock表
 *
 * @author mabai
 * @since 2022/10/25 21:51
 */
@Table(name = "tb_stock")
@Data
public class ItemStock implements Serializable {

    @Id
    private Long itemId;

    @Column(name = "stock_count")
    private Long stockCount;

    @Column(name = "lock_count")
    private Integer lockCount;

    @Column(name = "restrict_count")
    private Integer restrictCount;

    @Column(name = "sell_id")
    private Integer sellId;

    private static final long serialVersionUID = 1L;
}
